package cn.jly.spring.ioc.config;

import cn.jly.spring.ioc.beans.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lanyangji
 * @description bean配置类
 * @date 2020/11/7 下午 9:58
 */
@Configuration
public class BeanConfig {
    @Bean
    public Person person() {
        return new Person(1101, "tom");
    }
}
